package com.ztmmm.module.qu.mapper;

import com.ztmmm.module.qu.entity.QuAnswer;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 候选答案 Mapper 接口
 * </p>
 *
 * @author ztm
 * @since 2023-03-21
 */
@Mapper
public interface QuAnswerMapper extends BaseMapper<QuAnswer> {
    @Select("select * from el_qu_answer where qu_id = #{quId}")
    List<QuAnswer> selectByQid(String quId);
    @Delete("delete from el_qu_answer where qu_id=#{quId}")
    int delByQid(String qId);
}
